package finalfrontier;

/**Classe de beam
 * @author Nicolas Roy Boourdages
 */

public class BeamInformation extends Beam {
    public BeamInformation(String string, int i, float[] floats) {
        super(string, i, floats);
    }
    
    public void beamEffect(int i, int j, int q, int w){
        if( q == 0 && w == 0){
            if(!WorldMap.isEmpty(i, j)){
                CarreVie carre = WorldMap.getMapVie(i, j);
                String c = "Age..." + String.valueOf(carre.getAge());
                String d = "Energy..." + String.valueOf(carre.getEnergie());
                String e = "Orientation..." + carre.getOrientation();
                DisplayWindow.bigMessageSender(new String[]{c,d,e});
            }
        }
    }
}
